package com.affablebean.model.dal;

import java.sql.SQLException;
import java.util.List;

import com.affablebean.model.entity.GenericEntity;

public interface GenericDAL<E extends GenericEntity> {

	public abstract boolean insertEntity(E entity) throws SQLException;

	public abstract boolean updateEntity(E entity) throws SQLException;

	public abstract boolean deleteEntity(E entity) throws SQLException;

	public abstract List<E> getAll() throws SQLException;

	public abstract E findById(int id) throws SQLException;

	public abstract int getCount() throws SQLException;

}
